import { defaultAxios as request } from '@/utils/http';

export const login = (data) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data,
  });
};

export const userRegister = (data) => {
  return request({
    url: '/auth/create',
    method: 'post',
    data,
  });
};

export const refreshToken = () => {
  return request({
    url: '/auth/refreshToken',
    method: 'post',
  });
};

export const checkIsLockScreen = () => {
  return request({
    url: '/auth/checkIsLock',
    method: 'post',
  });
};

export const unLockScreen = () => {
  return request({
    url: '/auth/unLockScreen',
    method: 'post',
  });
};
